package cn.keking.kkantireptiledemoboot.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

/**
 * @author chenjh
 * @since 2019/7/18 17:20
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    private Random random = new Random();

    @GetMapping("")
    public int demo() {
        return random.nextInt(10000);
    }

}
